Skip to main content

All Questions

3votes
1answer
169views

Processing a binary file with buffer length tags

I am trying to process a very large binary file using MappedByteBuffer from java.nio package. This is how the data looks like in the file: ...
SuhasG's user avatar
2votes
2answers
217views

Message encode/decode library

I write protocol messages encoder/decoder for my project. All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body. There are two types of messages: Plain message - ...
bw_dev's user avatar
3votes
1answer
230views

Settings class implementation

I have a settings.txt file with the following format: ...
potato's user avatar
  • 1,122
4votes
2answers
179views

Serializing data from two URLs in the same object efficiently

This is a follow-up to: Serializing JSON data coming from two URLs in the same object I have two URLs (urlA and urlB) and they ...
arsenal's user avatar
  • 2,177
7votes
1answer
28kviews

Parse strings and convert the value to .java types

Below is a generic code for parsing strings (read from file for example) and converting them to .java types, such as primitives (and their wrappers), java.io.File, Enum etc. There is also possible to ...
drapostolos's user avatar

close